import Vue from 'vue'
import Router from 'vue-router'
import Login from "@/components/Login";
import Manager from "@/components/Manager";
import UpdatePwd from "../components/user/UpdatePwd";
import ClassList from "../components/Class/ClassList";
import StudentList from "../components/Student/StudentList";
import AddStudent from "../components/Student/AddStudent";
import AddClass from "../components/Class/AddClass";
import laboratoryList from "../components/laboratory/laboratoryList";

Vue.use(Router)

export default new Router({
  routes: [
    {path: "/", component: Login},
    {
      path: "/manager", component: Manager,
      children:[
        {path: "/user/updatePwd", component:UpdatePwd},
        {path: "/Class/ClassList", component:ClassList},
        {path: "/Student/StudentList", component:StudentList},
        {path: "/Student/AddStudent", component:AddStudent},
        {path: "/Class/AddClass", component:AddClass},
        {path: "/laboratory/laboratoryList", component:laboratoryList, mata:{hidden:true,title:"实验室预定后台系统"}}
      ]
    }
  ]
})
